import socket
sk=socket.socket()
sk.bind(('127.0.0.1',9001))
sk.listen()
print('sk:',sk)

conn,addr=sk.accept()
print('conn:',conn)
conn.send(b'hello')
msg=conn.recv(1024)
print(msg)

conn.close()

sk.close()